package com.example.demo.controller;


import com.example.demo.entity.Account;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class Information {

    @GetMapping("/information")
    public String information(@AuthenticationPrincipal Account account){
        System.out.println(account.getUsername());
        return "information";
    }
}
